package com.fan.service.user;
//import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.fan.pojo.User;
public interface UserService {

	//用户登录
	public User login(String userCode, String password);
	//修改密码
	public boolean updatePwd(int id,String password)throws SQLException, Exception;
	//�����û���Ϣ
	public boolean add(User user);
	//����������ѯ�û��б�
	public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize);

	//��ѯ��¼��
	public int getUserCount(String username, int userRole);

	//����userCode��ѯ��User
	public User selectUserCodeExist(String userCode);

	//����IDɾ��user
	public boolean deleteUserById(Integer delId);

	//����ID����user
	public User getUserById(String id);

	//�޸��û���Ϣ
	public boolean modify(User user);

}